class_name AIBehaviorFactory

var states: Dictionary

func _init() -> void:
	states = {
		Player.Role.GOALIE: AIBehaviorGoalie,
		Player.Role.DEFENSE: AIBehaviorField,
		Player.Role.MIDFIELD: AIBehaviorField,
		Player.Role.OFFENSE: AIBehaviorField
	}
	
func get_ai_behavior(role: Player.Role) -> AIBehavior:
	assert(states.has(role), "role doesn't exist!")
	return states.get(role).new()
